<PRE>
number: {$number}
<ul>
<li>{$number|string_format:"%.3f"} (format: %.3f)</li>
<li>{$number|string_format:"%d"} (format: %d - get int value)</li>
</ul>
string: {$test_string}
<ul>
<li>{$test_string|truncate:30}  (truncate:30)</li>
<li>{$test_string|upper}  (upper)</li>
<li>{$test_string|indent:10}  (indent: 10)</li>
<li>{$test_string|spacify}  (spacify)</li>
<li>{$test_string|wordwrap:20}  (wordwrap:20)</li>
<li>{$test_string|replace:'a':'b'}  (replace 'a' by 'b')</li>
</ul>
</PRE>